Dividing Algebraic Terms